package com.example.server.service.base;

import cn.hutool.json.JSONObject;
import com.example.server.common.constant.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @author china.fuyao@outlook.com
 * @date 2020-04-08 14:36
 */
public interface ImageService {

    /**
     * 获取图片上传签名
     * @return
     */
    Result getUploadImgPolicy();
    /**
     * 服务器视频上传
     *
     * @param file
     * @return
     */
    String uploadVideoByServer(MultipartFile file);
    /**
     * 服务器图片上传
     *
     * @param file
     * @return
     */
    String uploadImgByServer(MultipartFile file);

    /**
     * layedit图片上传
     * @param file
     * @return
     */
    JSONObject uploadImgByLay(MultipartFile file);
}
